﻿using Microsoft.Extensions.DependencyInjection;

namespace Loong.Runtime.Caching.Memory
{
    public static class MemoryCacheExtensions
    {
        public static IServiceCollection AddMicrosoftMemoryCache(this IServiceCollection services)
        {
            services.AddSingleton<ICache, LoongMemoryCache>();

            return services;
        }
    }
}
